package com.bwie.alipay.config;

import java.io.FileWriter;
import java.io.IOException;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2024-08-25
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "2021000147682244";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDbQQ7yPXFSMQbEKLwwospozomqIALcrsCiOxmFuUQ7bqyFxiZEobZ8c3r8HMdbbcH4OLdHLkpK5Z4S2b5RY41BTJEd5lkkiXHkPsHL8kH4C8CH++BiManjC43yiu29ykLXRRwHFVHGK5kqjqqbAvdJpzQm1j9b1oQa3kBeHs+0mWrdHdM8E6iqt6T25mI2y5TsXLpjigrC4zKp1w3qss9B6VSjnwPFq2j2Km2jx+e7FvFWtEXDfiY1ldGCUzHYR5igEJenGv2r6mbxpQXwYXPj3sEx3iW1C1NIzvPlLvhE5iD8FxRGMfYvsjRIocPjlHxduZAUIkQ5gbayImt909bNAgMBAAECggEAetSAtg7b7GrQ2pXjj++zK3IBx5A1akJwYrJvQu4enpkLB8qRZ8Ocwy3CyXip6rubfh7v9m2laz4mB3N63ofB+8IUTkbcy85AQtkxorruYDLdQpFGDFy8SxkPBcD1HW0xcv4hjIpSDI4iOahBRaQsu1NzsQo35pBP4+l87/2c6RQ7xbIXvVXTIsLFPFxXhY5Fa5f56bsmgYJyhtsYNw2dB1oxMAkfDA3JHhNfNVeG59AmXpmsz2xVCRswO5DveFNMNoVXH/0yJyspdWMDP6wIvauE/l38iFJ+v64aFMNReoyLOHkpdntlb8zNFTJceFYJHQvYn3KBuTfDjvjMsxLPwQKBgQD8G8gZEC1QbSqu74XPt62e4nXNNBt/Fc/RXF7H8AYyb9wLNgT39VKu+fAXXwjXfYvGk+FbBdQTRplTUsh5lE2EOCPhMmhIMJBskq01LyM+zj4q5AFpN+QGx/Heb0vRyLk0DwDnQFwi28XYMZXy6hMRX47fMn/Sf7n4a4LCmQ0o3QKBgQDeo3N9hw5UVOjac39rg2gZ6CUR60t8T48k2tQaNDo/Oiidooy6VJyMTTRdztWHC2yKv3oKflhNge0Gd6iY5NR8jOWKVK1zWAv/riciXVuvS7gYHUUot0GXlVmokB2USnl1akjRiZWCs7RgmCe65Pl/VNgBPu8ynk4AtLgNYlCOsQKBgQDATlTRQXS/X7ZqYIz6yIpooyfm0rOSukme0s39x0qC2K7J4nfhyME8day9tyFgdwTTAeSp8QU3eufkFkaT7xs+GzDLTA8d2eWg3DXBVuaUtu/W+btVzmti/Muzt8PnDyyu2C8BNyfQ80G0Swatl/3Zh8HM4ZF9OS7bnu7Mj8DpBQKBgQC1lmEjGB2y4NJPInbh7PribnqVw/D8gjOBXs4yVTjQyxHHiIX5j/tjX7D/diyoicPM4uGaX3SMOxVk+gHUOoeo0o6BphEWi9C1iIi4uaaHMl4DpRP8YoOoLBNFrc3CXn/0KW0dIneEdCgBxPhasllg5oWLdpZIFeAPKVcY64BC8QKBgD5u1cqYLsg/nSHxoY1Gg/fdtp3JClYWdo3OHf6fCnBjZHtT65/9mqEjYVrYj+T6LBqPBVAetLa5hmCeeKrYxiO2+Z+qFMs7FDJ5QG6r8/u4/RVfNHZkfgLvXAc3TmtqzU7yn4bkSfPi+4zuDhWG5etMKeCieDC71w9zsBaWjgLX";

    // 支付宝公钥,查看地址：https://open.alipay.com/develop/sandbox/app 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgrJFItILLHq63b1XO8kxeSQi/D4iPaunUzOOxAZeSRrVsYRz63eTFO7vi2+zuqCDsEP0JY/m9zEHOHg2Guy07nXqQXjFPqkX2dfB0suV0KJA8IswSexZUjwlzNEhXMvLq05Jrd2zHQkMZ5+bHTMzFVDUI8jpwjPsrFN9r/1VsAjt4esT3hIV/CR/4j2fqNaA1fqyedQEN1/JX5erDtGZLj1LwYG9uCPPcffOkEU6y/w67EXErHI0SYZ2XX43A9Vy8ndT5+JB9hmzatzi8TBGcvZ8Tm0lEcUkbVnFYPbohmH8dF4s2mRlTbFPQspEaq1w4PAYkzEyXsHxBHvb5dOw2wIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://d9bd48aa.natappfree.cc/alipay/alipayNotify";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://d9bd48aa.natappfree.cc/alipay/alipayReturn";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝沙箱网关
    public static String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    // 支付宝日志存储地址
    public static String log_path = "D:\\alipayLog";


}